hackerrank input() problem solution in python programming